```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Java并发工具包 - 技术小馆</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f8fafc;
        }
        .hero {
            background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
            color: white;
        }
        .card {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .section-title {
            position: relative;
            padding-bottom: 0.5rem;
        }
        .section-title:after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: #2563eb;
            border-radius: 3px;
        }
        .feature-icon {
            font-size: 2rem;
            color: #2563eb;
            margin-bottom: 1rem;
        }
        .mermaid {
            background: white;
            padding: 1.5rem;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            margin: 2rem 0;
        }
        .footer {
            background-color: #1e293b;
            color: #f8fafc;
        }
        .footer a:hover {
            color: #60a5fa;
        }
    </style>
</head>
<body class="antialiased">
    <!-- Hero Section -->
    <section class="hero py-20 px-4 sm:px-6 lg:px-8">
        <div class="max-w-6xl mx-auto text-center">
            <h1 class="text-4xl md:text-5xl font-bold mb-6 leading-tight">Java并发工具包</h1>
            <p class="text-xl md:text-2xl mb-8 max-w-3xl mx-auto">高效管理多线程并发执行的强大工具集</p>
            <div class="flex justify-center">
                <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1736052748629-13b72f93-22b0-4e2a-ac92-7843eb8542c3.png" 
                     alt="Java并发编程" 
                     class="rounded-lg shadow-xl w-full max-w-2xl">
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <main class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
        <!-- Overview Section -->
        <section class="mb-16">
            <h2 class="text-3xl font-bold mb-8 section-title">并发工具包概述</h2>
            <div class="grid md:grid-cols-2 gap-8">
                <div>
                    <p class="text-lg mb-6">在多线程编程中，尤其是涉及高并发、高性能的应用程序时，管理线程、处理线程间的协调与同步是一个非常复杂的问题。为了解决这一问题，Java 提供了一个强大的并发工具包——<code class="bg-blue-100 px-2 py-1 rounded">java.util.concurrent</code>。</p>
                    <p class="mb-6">这个工具包通过一系列类和接口，提供了高效、安全的并发编程支持，极大地简化了多线程编程的复杂性。</p>
                    <div class="bg-blue-50 p-4 rounded-lg border-l-4 border-blue-500">
                        <i class="fas fa-info-circle text-blue-500 mr-2"></i>
                        <span>并发工具包的主要优势：简化并发编程、提高并发性能、保证线程安全、增加可扩展性。</span>
                    </div>
                </div>
                <div class="flex items-center">
                    <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1736052774018-a8119be5-59b8-4fbe-9d56-9aa6e995e810.png" 
                         alt="并发工具包" 
                         class="rounded-lg shadow-md w-full">
                </div>
            </div>
        </section>

        <!-- Components Section -->
        <section class="mb-16">
            <h2 class="text-3xl font-bold mb-8 section-title">并发工具包的组成</h2>
            <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
                <div class="card bg-white p-6 rounded-lg shadow-md">
                    <div class="feature-icon">
                        <i class="fas fa-tasks"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">Executor框架</h3>
                    <p>用于管理和控制线程池的执行，提供比传统Thread类更灵活的线程管理方式，避免资源浪费和性能瓶颈。</p>
                </div>
                <div class="card bg-white p-6 rounded-lg shadow-md">
                    <div class="feature-icon">
                        <i class="fas fa-layer-group"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">并发集合类</h3>
                    <p>如ConcurrentHashMap、CopyOnWriteArrayList等，它们是线程安全的，可以在多线程环境下安全地访问和修改数据。</p>
                </div>
                <div class="card bg-white p-6 rounded-lg shadow-md">
                    <div class="feature-icon">
                        <i class="fas fa-lock"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">同步工具类</h3>
                    <p>包括ReentrantLock、CountDownLatch、Semaphore等，提供比synchronized更细粒度和灵活的控制。</p>
                </div>
                <div class="card bg-white p-6 rounded-lg shadow-md">
                    <div class="feature-icon">
                        <i class="fas fa-atom"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">原子变量</h3>
                    <p>如AtomicInteger、AtomicLong等，通过CAS机制提供高效的无锁并发控制。</p>
                </div>
                <div class="card bg-white p-6 rounded-lg shadow-md">
                    <div class="feature-icon">
                        <i class="fas fa-clock"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">任务调度工具</h3>
                    <p>如ScheduledExecutorService，可以执行延迟任务和周期性任务。</p>
                </div>
                <div class="card bg-white p-6 rounded-lg shadow-md">
                    <div class="feature-icon">
                        <i class="fas fa-share-alt"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-3">并行流与ForkJoinPool</h3>
                    <p>支持并行处理数据流，自动利用多核处理器提高计算效率。</p>
                </div>
            </div>
        </section>

        <!-- Core Interfaces Section -->
        <section class="mb-16">
            <h2 class="text-3xl font-bold mb-8 section-title">并发工具包中的核心接口</h2>
            
            <div class="mermaid">
                graph LR
                    A[Executor] --> B[ExecutorService]
                    B --> C[ThreadPoolExecutor]
                    B --> D[ScheduledExecutorService]
                    E[Lock] --> F[ReentrantLock]
                    E --> G[ReadWriteLock]
                    G --> H[ReentrantReadWriteLock]
                    I[BlockingQueue] --> J[ArrayBlockingQueue]
                    I --> K[LinkedBlockingQueue]
                    L[Future]
                    M[Callable]
            </div>
            
            <div class="grid md:grid-cols-2 gap-8">
                <div>
                    <h3 class="text-2xl font-semibold mb-4">Executor 和 ExecutorService</h3>
                    <p class="mb-4">Executor 是一个执行提交任务的接口，定义了一个方法 <code class="bg-blue-100 px-1 py-0.5 rounded">void execute(Runnable command)</code>，它接收一个 Runnable 任务并将其提交给某个线程去执行。</p>
                    <p class="mb-4">ExecutorService 是 Executor 接口的子接口，提供了更丰富的任务执行控制方法，如：</p>
                    <ul class="list-disc pl-6 mb-4 space-y-2">
                        <li><code>submit(Callable&lt;T&gt; task)</code>：提交一个任务并返回一个 Future</li>
                        <li><code>invokeAll()</code>：一次性提交多个任务并获取它们的结果</li>
                        <li><code>shutdown()</code>：平滑关闭线程池</li>
                    </ul>
                </div>
                <div>
                    <h3 class="text-2xl font-semibold mb-4">Callable 和 Future</h3>
                    <p class="mb-4"><strong>Runnable</strong> 是一个函数式接口，表示一个无返回值的任务。Runnable 接口的 run() 方法是执行任务的核心。</p>
                    <p class="mb-4"><strong>Callable</strong> 是 Runnable 的扩展，它允许任务返回结果，并能够抛出异常。Callable 接口的 call() 方法返回一个值。</p>
                    <p class="mb-4"><strong>Future</strong> 表示一个异步计算的结果，它提供了用于检索任务执行结果的方法。</p>
                    <div class="bg-blue-50 p-4 rounded-lg">
                        <i class="fas fa-lightbulb text-blue-500 mr-2"></i>
                        <span>Callable + Future 组合适用于需要异步执行并且可能需要等待结果的任务。</span>
                    </div>
                </div>
            </div>
        </section>

        <!-- Thread Pool Section -->
        <section class="mb-16">
            <h2 class="text-3xl font-bold mb-8 section-title">线程池（Executor Framework）</h2>
            <div class="grid md:grid-cols-2 gap-8">
                <div>
                    <p class="mb-6">在并发编程中，线程的创建和销毁是非常昂贵的操作，尤其在高并发场景下，频繁地创建和销毁线程不仅会浪费大量的资源，还会导致性能瓶颈。为了优化线程管理，Java 提供了线程池来管理线程的创建、执行和销毁。</p>
                    
                    <div class="bg-yellow-50 p-4 rounded-lg border-l-4 border-yellow-500 mb-6">
                        <i class="fas fa-exclamation-triangle text-yellow-500 mr-2"></i>
                        <span>线程池通过对线程的复用和调度来减少创建和销毁线程的开销，从而提高程序的执行效率。</span>
                    </div>
                    
                    <h3 class="text-2xl font-semibold mb-4 mt-8">线程池类型</h3>
                    <ul class="space-y-4">
                        <li>
                            <strong>FixedThreadPool</strong>：固定大小的线程池
                            <code class="block bg-gray-100 p-2 rounded mt-1 text-sm">Executors.newFixedThreadPool(10)</code>
                        </li>
                        <li>
                            <strong>CachedThreadPool</strong>：根据需求创建新线程的线程池
                            <code class="block bg-gray-100 p-2 rounded mt-1 text-sm">Executors.newCachedThreadPool()</code>
                        </li>
                        <li>
                            <strong>SingleThreadExecutor</strong>：单线程的线程池
                            <code class="block bg-gray-100 p-2 rounded mt-1 text-sm">Executors.newSingleThreadExecutor()</code>
                        </li>
                        <li>
                            <strong>ScheduledThreadPoolExecutor</strong>：支持定时任务的线程池
                            <code class="block bg-gray-100 p-2 rounded mt-1 text-sm">Executors.newScheduledThreadPool(10)</code>
                        </li>
                    </ul>
                </div>
                <div>
                    <h3 class="text-2xl font-semibold mb-4">线程池的工作原理</h3>
                    <div class="mermaid">
                        graph TD
                            A[提交任务] --> B{有空闲线程?}
                            B -->|是| C[分配线程执行]
                            B -->|否| D{线程数<最大线程数?}
                            D -->|是| E[创建新线程执行]
                            D -->|否| F[任务进入等待队列]
                            F --> G{队列已满?}
                            G -->|否| F
                            G -->|是| H[执行拒绝策略]
                    </div>
                    
                    <h3 class="text-2xl font-semibold mb-4 mt-8">线程池配置参数</h3>
                    <ul class="list-disc pl-6 space-y-2">
                        <li><strong>corePoolSize</strong>：核心池大小</li>
                        <li><strong>maximumPoolSize</strong>：最大池大小</li>
                        <li><strong>keepAliveTime</strong>：线程空闲的最大存活时间</li>
                        <li><strong>workQueue</strong>：任务队列</li>
                        <li><strong>threadFactory</strong>：线程工厂</li>
                        <li><strong>handler</strong>：拒绝策略</li>
                    </ul>
                </div>
            </div>
        </section>

        <!-- Concurrent Collections Section -->
        <section class="mb-16">
            <h2 class="text-3xl font-bold mb-8 section-title">并发集合类</h2>
            
            <div class="grid md:grid-cols-3 gap-6 mb-8">
                <div class="card bg-white p-6 rounded-lg shadow-md">
                    <h3 class="text-xl font-semibold mb-3 flex items-center">
                        <i class="fas fa-table mr-2 text-blue-500"></i> ConcurrentHashMap
                    </h3>
                    <p class="mb-3">线程安全的哈希表实现，采用分段锁技术提高并发性能。</p>
                    <div class="bg-gray-100 p-3 rounded text-sm">
                        <code>ConcurrentHashMap&lt;String, Integer&gt; map = new ConcurrentHashMap&lt;&gt;();</code>
                    </div>
                </div>
                <div class="card bg-white p-6 rounded-lg shadow-md">
                    <h3 class="text-xl font-semibold mb-3 flex items-center">
                        <i class="fas fa-list-ol mr-2 text-blue-500"></i> CopyOnWriteArrayList
                    </h3>
                    <p class="mb-3">写时复制的线程安全列表，适合读多写少的场景。</p>
                    <div class="bg-gray-100 p-3 rounded text-sm">
                        <code>CopyOnWriteArrayList&lt;String&gt; list = new CopyOnWriteArrayList&lt;&gt;();</code>
                    </div>
                </div>
                <div class="card bg-white p-6 rounded-lg shadow-md">
                    <h3 class="text-xl font-semibold mb-3 flex items-center">
                        <i class="fas fa-exchange-alt mr-2 text-blue-500"></i> BlockingQueue
                    </h3>
                    <p class="mb-3">支持阻塞操作的队列，常用于生产者-消费者模式。</p>
                    <div class="bg-gray-100 p-3 rounded text-sm">
                        <code>BlockingQueue&lt;String&gt; queue = new LinkedBlockingQueue&lt;&gt;();</code>
                    </div>
                </div>
            </div>
            
            <div class="bg-blue-50 p-6 rounded-lg">
                <h3 class="text-xl font-semibold mb-4 flex items-center">
                    <i class="fas fa-lightbulb text-blue-500 mr-2"></i> 并发集合类应用场景
                </h3>
                <ul class="list-disc pl-6 space-y-2">
                    <li><strong>ConcurrentHashMap</strong>：缓存实现、并发计数器</li>
                    <li><strong>CopyOnWriteArrayList</strong>：事件监听器列表、读多写少的配置项</li>
                    <li><strong>BlockingQueue</strong>：任务队列、生产者-消费者模式</li>
                    <li><strong>ConcurrentLinkedQueue</strong>：高性能无界队列</li>
                </ul>
            </div>
        </section>

        <!-- Atomic Variables Section -->
        <section class="mb-16">
            <h2 class="text-3xl font-bold mb-8 section-title">原子变量</h2>
            
            <div class="grid md:grid-cols-2 gap-8">
                <div>
                    <p class="mb-6">原子变量指的是对变量的操作在执行过程中不可被中断，这些操作是不可分割的。在多线程并发环境中，原子变量通过使用 <strong>CAS（Compare-And-Swap）</strong>操作来保证线程安全，而无需使用传统的同步机制。</p>
                    
                    <div class="bg-green-50 p-4 rounded-lg border-l-4 border-green-500 mb-6">
                        <i class="fas fa-bolt text-green-500 mr-2"></i>
                        <span>原子变量的优势在于它是无锁的，不会引起线程上下文切换，因此在高并发环境下性能优越。</span>
                    </div>
                    
                    <h3 class="text-2xl font-semibold mb-4">CAS操作原理</h3>
                    <p>CAS包含三个操作数：</p>
                    <ul class="list-disc pl-6 space-y-2 mt-2">
                        <li><strong>内存位置</strong>：我们想要更新的变量</li>
                        <li><strong>期望值</strong>：我们希望看到的当前值</li>
                        <li><strong>新值</strong>：如果期望值与当前值相等，我们希望更新的值</li>
                    </ul>
                </div>
                <div>
                    <h3 class="text-2xl font-semibold mb-4">常用原子变量类</h3>
                    
                    <div class="overflow-x-auto">
                        <table class="min-w-full bg-white rounded-lg overflow-hidden">
                            <thead class="bg-gray-100">
                                <tr>
                                    <th class="px-4 py-2 text-left">类名</th>
                                    <th class="px-4 py-2 text-left">描述</th>
                                    <th class="px-4 py-2 text-left">示例</th>
                                </tr>
                            </thead>
                            <tbody class="divide-y divide-gray-200">
                                <tr>
                                    <td class="px-4 py-2">AtomicInteger</td>
                                    <td class="px-4 py-2">提供对int的原子操作</td>
                                    <td class="px-4 py-2"><code>incrementAndGet()</code></td>
                                </tr>
                                <tr>
                                    <td class="px-4 py-2">AtomicLong</td>
                                    <td class="px-4 py-2">提供对long的原子操作</td>
                                    <td class="px-4 py-2"><code>addAndGet()</code></td>
                                </tr>
                                <tr>
                                    <td class="px-4 py-2">AtomicBoolean</td>
                                    <td class="px-4 py-2">提供对boolean的原子操作</td>
                                    <td class="px-4 py-2"><code>compareAndSet()</code></td>
                                </tr>
                                <tr>
                                    <td class="px-4 py-2">AtomicReference</td>
                                    <td class="px-4 py-2">提供对任意对象的原子操作</td>
                                    <td class="px-4 py-2"><code>getAndSet()</code></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    
                    <div class="mt-6 bg-gray-100 p-4 rounded-lg">
                        <h4 class="font-semibold mb-2">示例代码：</h4>
                        <pre class="text-sm"><code>AtomicInteger atomicInt = new AtomicInteger(0);
// 原子性递增
int newValue = atomicInt.incrementAndGet();
// CAS操作
boolean success = atomicInt.compareAndSet(1, 10);</code></pre>
                    </div>
                </div>
            </div>
        </section>

        <!-- Parallel Stream Section -->
        <section class="mb-16">
            <h2 class="text-3xl font-bold mb-8 section-title">并行流与ForkJoinPool</h2>
            
            <div class="grid md:grid-cols-2 gap-8">
                <div>
                    <h3 class="text-2xl font-semibold mb-4">并行流（Parallel Stream）</h3>
                    <p class="mb-4">并行流是Java 8引入的新特性，它基于流式API提供了一种简单的方式来进行多核处理。通过调用流的 <code class="bg-blue-100 px-1 py-0.5 rounded">parallel()</code> 方法，可以将串行流转换为并行流。</p>
                    
                    <div class="bg-blue-50 p-4 rounded-lg mb-6">
                        <i class="fas fa-info-circle text-blue-500 mr-2"></i>
                        <span>并行流通过底层的ForkJoinPool实现线程池管理，自动将任务分割成多个子任务并并行执行。</span>
                    </div>
                    
                    <h4 class="text-xl font-semibold mb-2">示例代码：</h4>
                    <div class="bg-gray-100 p-4 rounded-lg">
                        <pre class="text-sm"><code>List&lt;Integer&gt; numbers = Arrays.asList(1, 2, 3, 4, 5);
// 使用并行流计算平方和
int sum = numbers.parallelStream()
                .mapToInt(n -> n * n)
                .sum();</code></pre>
                    </div>
                </div>
                <div>
                    <h3 class="text-2xl font-semibold mb-4">ForkJoinPool</h3>
                    <p class="mb-4">ForkJoinPool是Java 7引入的一个并发工具类，它是一个高效的线程池，专门用于处理可以被递归分解的任务。在多核处理器上，ForkJoinPool能够通过任务的分解与合并来最大化CPU的使用率。</p>
                    
                    <div class="flex items-center justify-center my-6">
                        <div class="mermaid" style="width:100%">
                            graph TD
                                A[主任务] --> B[子任务1]
                                A --> C[子任务2]
                                B --> D[子子任务1]
                                B --> E[子子任务2]
                                C --> F[子子任务3]
                                C --> G[子子任务4]
                        </div>
                    </div>
                    
                    <h4 class="text-xl font-semibold mb-2">工作窃取算法</h4>
                    <p>ForkJoinPool通过工作窃取算法来最大化CPU使用率。每个线程都持有一个工作队列，如果某个线程的队列为空，它会从其他线程的队列中窃取任务，从而避免线程闲置。</p>
                </div>
            </div>
        </section>

        <!-- Locks Section -->
        <section class="mb-16">
            <h2 class="text-3xl font-bold mb-8 section-title">锁与同步工具</h2>
            
            <div class="grid md:grid-cols-2 gap-8">
                <div>
                    <h3 class="text-2xl font-semibold mb-4">锁（Locks）</h3>
                    
                    <div class="mb-6">
                        <h4 class="text-xl font-semibold mb-2 flex items-center">
                            <i class="fas fa-lock mr-2 text-blue-500"></i> ReentrantLock
                        </h4>
                        <p class="mb-2">可重入锁，提供比synchronized更灵活的锁机制：</p>
                        <ul class="list-disc pl-6 space-y-1">
                            <li>可重入性</li>
                            <li>支持公平锁</li>
                            <li>支持中断</li>
                            <li>支持定时锁</li>
                        </ul>
                        <div class="bg-gray-100 p-3 rounded text-sm mt-3">
                            <pre><code>Lock lock = new ReentrantLock();
lock.lock();
try {
    // 临界区代码
} finally {
    lock.unlock();
}</code></pre>
                        </div>
                    </div>
                    
                    <div>
                        <h4 class="text-xl font-semibold mb-2 flex items-center">
                            <i class="fas fa-book-reader mr-2 text-blue-500"></i> ReadWriteLock
                        </h4>
                        <p>分离读写操作的锁，允许多个线程同时读取共享资源，但写入操作会被独占访问。</p>
                        <div class="bg-gray-100 p-3 rounded text-sm mt-3">
                            <pre><code>ReadWriteLock rwLock = new ReentrantReadWriteLock();
rwLock.readLock().lock();  // 获取读锁
rwLock.writeLock().lock(); // 获取写锁</code></pre>
                        </div>
                    </div>
                </div>
                
                <div>
                    <h3 class="text-2xl font-semibold mb-4">同步工具（Synchronization Tools）</h3>
                    
                    <div class="mb-6">
                        <h4 class="text-xl font-semibold mb-2 flex items-center">
                            <i class="fas fa-flag mr-2 text-blue-500"></i> CountDownLatch
                        </h4>
                        <p>计数器，允许一个或多个线程等待直到某些事件发生。</p>
                        <div class="bg-gray-100 p-3 rounded text-sm mt-3">
                            <pre><code>CountDownLatch latch = new CountDownLatch(3);
// 在工作线程中
latch.countDown();
// 在主线程中
latch.await();</code></pre>
                        </div>
                    </div>
                    
                    <div class="mb-6">
                        <h4 class="text-xl font-semibold mb-2 flex items-center">
                            <i class="fas fa-project-diagram mr-2 text-blue-500"></i> CyclicBarrier
                        </h4>
                        <p>同步点，允许一组线程互相等待，直到所有线程都到达同步点。</p>
                        <div class="bg-gray-100 p-3 rounded text-sm mt-3">
                            <pre><code>CyclicBarrier barrier = new CyclicBarrier(3);
// 在工作线程中
barrier.await();</code></pre>
                        </div>
                    </div>
                    
                    <div>
                        <h4 class="text-xl font-semibold mb-2 flex items-center">
                            <i class="fas fa-traffic-light mr-2 text-blue-500"></i> Semaphore
                        </h4>
                        <p>计数信号量，用于控制访问某一资源的线程数量。</p>
                        <div class="bg-gray-100 p-3 rounded text-sm mt-3">
                            <pre><code>Semaphore semaphore = new Semaphore(5);
semaphore.acquire();  // 获取许可
semaphore.release();  // 释放许可</code></pre>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </main>

    <!-- Footer -->
    <footer class="footer py-8 px-4 sm:px-6 lg:px-8">
        <div class="max-w-6xl mx-auto">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="mb-4 md:mb-0">
                    <h3 class="text-xl font-semibold">技术小馆</h3>
                </div>
                <div>
                    <a href="http://www.yuque.com/jtostring" class="hover:text-blue-400 transition-colors duration-200">访问语雀主页</a>
                </div>
            </div>
            <div class="mt-6 text-center md:text-left">
                <p class="text-sm text-gray-400">© 2023 技术小馆. 保留所有权利.</p>
            </div>
        </div>
    </footer>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
    </script>
</body>
</html>
```